$OpenBSD: patch-src_modules_simu_simuv3_car_cpp,v 1.3 2016/09/20 18:18:52 pascal Exp $
--- src/modules/simu/simuv3/car.cpp.orig	Mon Apr 18 17:37:09 2016
+++ src/modules/simu/simuv3/car.cpp	Tue Sep 20 01:28:41 2016
@@ -400,9 +400,9 @@ SimCarUpdateSpeed(tCar *car)
         car->carElt->_fuelInstant = (tdble)((1.0-alpha)*car->carElt->_fuelInstant + alpha*fi);
     }
 
-    if (isnan(car->DynGCg.acc.x)
-        || isnan(car->DynGCg.acc.y)
-        || isnan(car->DynGCg.acc.z)) {
+    if (std::isnan(car->DynGCg.acc.x)
+        || std::isnan(car->DynGCg.acc.y)
+        || std::isnan(car->DynGCg.acc.z)) {
         car->DynGCg.acc.x = car->DynGCg.acc.y =car->DynGCg.acc.z =
             car->DynGC.acc.x = car->DynGC.acc.y =car->DynGC.acc.z = 0.0;;
         car->DynGCg.acc.z = -9.81f;
@@ -433,9 +433,9 @@ SimCarUpdateSpeed(tCar *car)
     car->DynGC.vel.y = updated.y;
     car->DynGC.vel.z = updated.z;
 
-    if (isnan(car->rot_acc[0])
-        || isnan(car->rot_acc[1])
-        || isnan(car->rot_acc[2])) {
+    if (std::isnan(car->rot_acc[0])
+        || std::isnan(car->rot_acc[1])
+        || std::isnan(car->rot_acc[2])) {
         car->rot_acc[0] = car->rot_acc[1] = car->rot_acc[2] = 0.0;
     }
    
@@ -513,10 +513,10 @@ SimCarUpdatePos(tCar *car)
     vx = car->DynGCg.vel.x;
     vy = car->DynGCg.vel.y;
     vz = car->DynGCg.vel.z;
-    if (isnan(vx) || isnan(vy) || isnan(vz)
-        || isnan(car->rot_mom[0])
-        || isnan(car->rot_mom[1])
-        || isnan(car->rot_mom[2])
+    if (std::isnan(vx) || std::isnan(vy) || std::isnan(vz)
+        || std::isnan(car->rot_mom[0])
+        || std::isnan(car->rot_mom[1])
+        || std::isnan(car->rot_mom[2])
         ) {
         car->DynGCg.vel.x = car->DynGCg.vel.y= car->DynGCg.vel.z = 
             car->DynGC.vel.x = car->DynGC.vel.y= car->DynGC.vel.z = 
@@ -844,7 +844,7 @@ void SimCarAddAngularVelocity (tCar* car)
     sgVec3 new_position;
     int i;
     for (/*int*/ i=0; i<4; i++) {
-        if (isnan(car->rot_mom[i])) {
+        if (std::isnan(car->rot_mom[i])) {
             car->rot_mom[i] = 0.0;
         }
     }
